package com.chengzzz.mysite.exception;

/**
 * <p>
 * 自定义异常
 * </p>
 *
 * @author 等什么柠檬君
 * @since 2020/8/26
 */
public class CustomException extends RuntimeException{

    private int code;  //异常状态码
    private String message;  //异常信息
    private String descinfo;   //描述
/**
 * 
 * @return 
 * @author 等什么柠檬君
 * @since 2020/8/26
 * @description    
 */
    public CustomException() {

    }

    public CustomException(int code, String message, String descinfo) {
        this.code = code;
        this.message = message;
        this.descinfo = descinfo;
    }

    public String getDescinfo() {
        return descinfo;
    }

    public void setDescinfo(String descinfo) {
        this.descinfo = descinfo;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
